public class shuixianhua {
    public static void main(String[] args) {
//        int shuliang = 0;
        int a,b,c;
        for (int i =100;i<1000;i++){
            a=i/100;
            b=i%100/10;
            c=i%100%10;

            if (a*a*a+b*b*b+c*c*c==i){
//                shuliang++;
                System.out.println("水仙花为"+i);
            }
        }
//        System.out.println("数量为"+shuliang);
    }
}
